/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package creditcardapp.model;

import framework.model.Factory;
import framework.model.FinancialCompany;
import framework.view.UI;

/**
 *
 * @author ThanhNguyen
 */
public class CreditCardCompany extends FinancialCompany {
    
    @Override
    public void start() {
        factory = new CreditCardFactory();
        factory.setFinancialCompany(this);
        Factory.setFactory(factory);
        
        ui = new UI();
        ui.setFinancialCompany(this);
        ui.setTitle("Credit-card processing Application");
        ui.setVisible(true);
    }
    
    public static void main(String[] args) {
        FinancialCompany finco = new CreditCardCompany();
        finco.start();
    }
}
